<template>
    <div class="show_box">
        <div class="show_msg">
            <h1>请问您确定删除吗</h1>
            <div>
                <button @click="$emit('cancelBtn')">取消</button>
                <button @click="$emit('okBtn')">确定</button>
            </div>
        </div>
    </div>
</template>


<style scoped>
.show_box {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}
.show_box .show_msg {
    width: 300px;
    height: 100px;
    background-color: white;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.show_box .show_msg button {
    width: 50px;
    height: 30px;
    background-color: #dddddd;
    border-radius: 10px;
}
</style>
